﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_APO_Customer_Group : DataObject
    {
        [Column]
        public string Channel { get { return _Channel; } set { _Channel = value; EntityState.FieldChange("Channel"); } }
        private string _Channel;
        public static FieldInfo channel = new FieldInfo("m_APO_Customer_Group", "Channel");

        [Column]
        public string Sub_Channel { get { return _Sub_Channel; } set { _Sub_Channel = value; EntityState.FieldChange("Sub_Channel"); } }
        private string _Sub_Channel;
        public static FieldInfo sub_channel = new FieldInfo("m_APO_Customer_Group", "Sub_Channel");

        [Column]
        public string Price_Group { get { return _Price_Group; } set { _Price_Group = value; EntityState.FieldChange("Price_Group"); } }
        private string _Price_Group;
        public static FieldInfo price_group = new FieldInfo("m_APO_Customer_Group", "Price_Group");

        [Column]
        public string Province { get { return _Province; } set { _Province = value; EntityState.FieldChange("Province"); } }
        private string _Province;
        public static FieldInfo province = new FieldInfo("m_APO_Customer_Group", "Province");

        [Column]
        public string Province_Name { get { return _Province_Name; } set { _Province_Name = value; EntityState.FieldChange("Province_Name"); } }
        private string _Province_Name;
        public static FieldInfo province_name = new FieldInfo("m_APO_Customer_Group", "Province_Name");

        [Column]
        public string APO_Customer_Description { get { return _APO_Customer_Description; } set { _APO_Customer_Description = value; EntityState.FieldChange("APO_Customer_Description"); } }
        private string _APO_Customer_Description;
        public static FieldInfo apo_customer_description = new FieldInfo("m_APO_Customer_Group", "APO_Customer_Description");

        [Column]
        public string APO_Customer { get { return _APO_Customer; } set { _APO_Customer = value; EntityState.FieldChange("APO_Customer"); } }
        private string _APO_Customer;
        public static FieldInfo apo_customer = new FieldInfo("m_APO_Customer_Group", "APO_Customer");

        [Column]
        public string Customer_Code_in_SAP { get { return _Customer_Code_in_SAP; } set { _Customer_Code_in_SAP = value; EntityState.FieldChange("Customer_Code_in_SAP"); } }
        private string _Customer_Code_in_SAP;
        public static FieldInfo customer_code_in_sap = new FieldInfo("m_APO_Customer_Group", "Customer_Code_in_SAP");

        [Column]
        public string Cluster { get { return _Cluster; } set { _Cluster = value; EntityState.FieldChange("Cluster"); } }
        private string _Cluster;
        public static FieldInfo cluster = new FieldInfo("m_APO_Customer_Group", "Cluster");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_APO_Customer_Group", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_APO_Customer_Group", "Status");
    }
}
